home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / tcppt1.zip / PTFILFRE.BAT < prev    next >
DOS Batch File  |  1990-08-29  |  2KB  |  84 lines

  1. echo off
  2. if not exist FHEAPCHK.OBS goto ERROR_NOOBJ
  3. if not exist NHEAPCHK.OBS goto ERROR_NOOBJ
  4.  
  5. if not exist %1cs.lib goto NOSMALLLIB
  6. echo Patching small library...
  7. copy FHEAPCHK.OBS FHEAPCHK.OBJ
  8. tlib %1cs.lib +- FHEAPCHK.OBJ
  9. del FHEAPCHK.OBJ
  10. copy NHEAPCHK.OBS NHEAPCHK.OBJ
  11. tlib %1cs.lib +- NHEAPCHK.OBJ
  12. del NHEAPCHK.OBJ
  13. if errorlevel 1 goto ERROR_NOTLIB
  14. goto MEDIUM
  15. :NOSMALLLIB
  16. echo Cannot find CS.LIB to patch small library.
  17.  
  18. :MEDIUM
  19. if not exist %1cm.lib goto NOMEDLIB
  20. echo Patching medium library...
  21. copy FHEAPCHK.OBM FHEAPCHK.OBJ
  22. tlib %1cm.lib +- FHEAPCHK.OBJ
  23. del FHEAPCHK.OBJ
  24. copy NHEAPCHK.OBM NHEAPCHK.OBJ
  25. tlib %1cm.lib +- NHEAPCHK.OBJ
  26. del NHEAPCHK.OBJ
  27. goto COMPACT
  28. :NOMEDLIB
  29. echo Cannot find CM.LIB to patch medium library.
  30.  
  31. :COMPACT
  32. if not exist %1cc.lib goto NOCOMPACTLIB
  33. echo Patching compact library...
  34. copy FHEAPCHK.OBC FHEAPCHK.OBJ
  35. tlib %1cc.lib +- FHEAPCHK.OBJ
  36. del FHEAPCHK.OBJ
  37. copy NHEAPCHK.OBC NHEAPCHK.OBJ
  38. tlib %1cc.lib +- NHEAPCHK.OBJ
  39. del NHEAPCHK.OBJ
  40. goto LARGE
  41. :NOCOMPACTLIB
  42. echo Cannot find CC.LIB to patch compact library.
  43.  
  44. :LARGE
  45. if not exist %1cl.lib goto NOLARGELIB
  46. echo Patching large library...
  47. copy FHEAPCHK.OBL FHEAPCHK.OBJ
  48. tlib %1cl.lib +- FHEAPCHK.OBJ
  49. del FHEAPCHK.OBJ
  50. copy NHEAPCHK.OBL NHEAPCHK.OBJ
  51. tlib %1cl.lib +- NHEAPCHK.OBJ
  52. del NHEAPCHK.OBJ
  53. goto HUGE
  54. :NOLARGELIB
  55. echo Cannot find CL.LIB to patch large library.
  56.  
  57. :HUGE
  58. if not exist %1ch.lib goto NOHUGELIB
  59. echo Patching huge library...
  60. copy FHEAPCHK.OBH FHEAPCHK.OBJ
  61. tlib %1ch.lib +- FHEAPCHK.OBJ
  62. del FHEAPCHK.OBJ
  63. copy NHEAPCHK.OBH NHEAPCHK.OBJ
  64. tlib %1ch.lib +- NHEAPCHK.OBJ
  65. del NHEAPCHK.OBJ
  66. goto DONE
  67. :NOHUGELIB
  68. echo Cannot find CH.LIB to patch huge library.
  69. goto DONE
  70.  
  71. :ERROR_NOOBJ
  72. echo The patch object module FHEAPCHK or NHEAPCHK is not in the current
  73. echo directory.  Cannot patch libraries.
  74. goto DONE
  75.  
  76. :ERROR_NOTLIB
  77. echo A problem was encountered executing TLIB.  Either the Turbo Librarian
  78. echo cannot be located along your DOS path, or an error occurred.  Consult
  79. echo your Turbo C++ Users Guide for more information on why TLIB might not
  80. echo be operating correctly.
  81.  
  82. :DONE
  83. echo Done.
  84.